package com.jdzy.model.teacher.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "教师/管理员表")
@TableName("sys_user")
public class SysUser extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户名")
    @TableField(value = "username")
    private String userName;  // 该字段的属性名称和数据表字段不一致
    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;
    @ApiModelProperty(value = "姓名")
    @TableField(value = "name")
    private String name;
    @ApiModelProperty(value = "手机号")
    @TableField(value = "phone")
    private String phone;
    @ApiModelProperty(value = "头像")
    @TableField(value = "avatar")
    private String avatar;
    @ApiModelProperty(value = "描述")
    @TableField(value = "description")
    private String description;
    @ApiModelProperty(value = "状态")
    @TableField(value = "status")
    private Integer status ;
}
